home *** CD-ROM | disk | FTP | other *** search
- Path: news.ov.com!news
- From: glenn@ov.com (Fletcher.Glenn@ov.com)
- Newsgroups: comp.lang.c
- Subject: Re: SYSTEM CALL in a while loop didn't work
- Date: 7 Feb 1996 16:52:45 GMT
- Organization: OpenVision
- Message-ID: <4falct$htt@spanky.pls.ov.com>
- References: <4f53vi$5uo@bcrkh13.bnr.ca>
- Reply-To: glenn@ov.com
- NNTP-Posting-Host: foghorn.pls.ov.com
-
- In article 5uo@bcrkh13.bnr.ca, coopeng <coopeng@bnr.ca> writes:
- >Hi folks,
- >I am rubing a 13000 records file in a 3 nested while loop
- >eg
- >
- >while()
- > while()
- > */first system call */
- ^^
- Is this a typo?
-
- > while()/*rubing*/
- > strstr()
- > */second system call */
- ^^
- Is this a typo?
-
- >
- >first system call works, but second doesn't. If I comment the third while loop then
- >second while loop also works. I shall be thankful if you guys mail me the
- >solution as soon as possible.
- >
- >email address : coopeng@bnr.ca
- >thanks
- >denesh
- >
-
- Try the following:
-
- while() {
- while() {
- /* first system call */
- while() { /*rubing*/
- strstr()
- /* second system call */
- }
- }
- }
-
- Fletcher.Glenn@ov.com
-
-